package com.gmss.crawler.module.person.service;

import com.alibaba.fastjson.JSONObject;
import com.gmss.crawler.module.person.domain.PersonInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 人员信息 服务类
 * </p>
 *
 * @author Auto-generator
 * @since 2021-10-19
 */
public interface IPersonInfoService extends IService<PersonInfo> {

    void queryCompany(PersonInfo personInfo);

    List<PersonInfo> queryPersonInfoAndCompany(Map<String, Object> queryMap);

    List<PersonInfo> queryExportExcelData(Map<String,Object> map);

    void getDetailData(Map<String, Object> queryMap, List<PersonInfo> list);

    List<Map> paperCount(Map<String, Object> queryMap);

    List<Map> patentCount(Map<String, Object> queryMap);

    List<Map> publicationCount(Map<String, Object> queryMap);

    boolean writeExcel(String filePath, String fileName, List<PersonInfo> personInfoList);

    List<PersonInfo> getUpdatePersonInfoData(JSONObject jsonObject);

    List<Integer> getAcademician();

    List<PersonInfo> customBySql(Map map);

    List<PersonInfo> customByWikiSql(Map map);

    void verifyDuplicateNamesAndSaveOrUpdate(List<PersonInfo> list);
}
